package cn.bj.beans;

import java.util.ArrayList;
import java.util.List;

public class YxjdExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public YxjdExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andPictureIsNull() {
            addCriterion("picture is null");
            return (Criteria) this;
        }

        public Criteria andPictureIsNotNull() {
            addCriterion("picture is not null");
            return (Criteria) this;
        }

        public Criteria andPictureEqualTo(String value) {
            addCriterion("picture =", value, "picture");
            return (Criteria) this;
        }

        public Criteria andPictureNotEqualTo(String value) {
            addCriterion("picture <>", value, "picture");
            return (Criteria) this;
        }

        public Criteria andPictureGreaterThan(String value) {
            addCriterion("picture >", value, "picture");
            return (Criteria) this;
        }

        public Criteria andPictureGreaterThanOrEqualTo(String value) {
            addCriterion("picture >=", value, "picture");
            return (Criteria) this;
        }

        public Criteria andPictureLessThan(String value) {
            addCriterion("picture <", value, "picture");
            return (Criteria) this;
        }

        public Criteria andPictureLessThanOrEqualTo(String value) {
            addCriterion("picture <=", value, "picture");
            return (Criteria) this;
        }

        public Criteria andPictureLike(String value) {
            addCriterion("picture like", value, "picture");
            return (Criteria) this;
        }

        public Criteria andPictureNotLike(String value) {
            addCriterion("picture not like", value, "picture");
            return (Criteria) this;
        }

        public Criteria andPictureIn(List<String> values) {
            addCriterion("picture in", values, "picture");
            return (Criteria) this;
        }

        public Criteria andPictureNotIn(List<String> values) {
            addCriterion("picture not in", values, "picture");
            return (Criteria) this;
        }

        public Criteria andPictureBetween(String value1, String value2) {
            addCriterion("picture between", value1, value2, "picture");
            return (Criteria) this;
        }

        public Criteria andPictureNotBetween(String value1, String value2) {
            addCriterion("picture not between", value1, value2, "picture");
            return (Criteria) this;
        }

        public Criteria andNameIsNull() {
            addCriterion("name is null");
            return (Criteria) this;
        }

        public Criteria andNameIsNotNull() {
            addCriterion("name is not null");
            return (Criteria) this;
        }

        public Criteria andNameEqualTo(String value) {
            addCriterion("name =", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameNotEqualTo(String value) {
            addCriterion("name <>", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameGreaterThan(String value) {
            addCriterion("name >", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameGreaterThanOrEqualTo(String value) {
            addCriterion("name >=", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameLessThan(String value) {
            addCriterion("name <", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameLessThanOrEqualTo(String value) {
            addCriterion("name <=", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameLike(String value) {
            addCriterion("name like", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameNotLike(String value) {
            addCriterion("name not like", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameIn(List<String> values) {
            addCriterion("name in", values, "name");
            return (Criteria) this;
        }

        public Criteria andNameNotIn(List<String> values) {
            addCriterion("name not in", values, "name");
            return (Criteria) this;
        }

        public Criteria andNameBetween(String value1, String value2) {
            addCriterion("name between", value1, value2, "name");
            return (Criteria) this;
        }

        public Criteria andNameNotBetween(String value1, String value2) {
            addCriterion("name not between", value1, value2, "name");
            return (Criteria) this;
        }

        public Criteria andRegionIsNull() {
            addCriterion("region is null");
            return (Criteria) this;
        }

        public Criteria andRegionIsNotNull() {
            addCriterion("region is not null");
            return (Criteria) this;
        }

        public Criteria andRegionEqualTo(String value) {
            addCriterion("region =", value, "region");
            return (Criteria) this;
        }

        public Criteria andRegionNotEqualTo(String value) {
            addCriterion("region <>", value, "region");
            return (Criteria) this;
        }

        public Criteria andRegionGreaterThan(String value) {
            addCriterion("region >", value, "region");
            return (Criteria) this;
        }

        public Criteria andRegionGreaterThanOrEqualTo(String value) {
            addCriterion("region >=", value, "region");
            return (Criteria) this;
        }

        public Criteria andRegionLessThan(String value) {
            addCriterion("region <", value, "region");
            return (Criteria) this;
        }

        public Criteria andRegionLessThanOrEqualTo(String value) {
            addCriterion("region <=", value, "region");
            return (Criteria) this;
        }

        public Criteria andRegionLike(String value) {
            addCriterion("region like", value, "region");
            return (Criteria) this;
        }

        public Criteria andRegionNotLike(String value) {
            addCriterion("region not like", value, "region");
            return (Criteria) this;
        }

        public Criteria andRegionIn(List<String> values) {
            addCriterion("region in", values, "region");
            return (Criteria) this;
        }

        public Criteria andRegionNotIn(List<String> values) {
            addCriterion("region not in", values, "region");
            return (Criteria) this;
        }

        public Criteria andRegionBetween(String value1, String value2) {
            addCriterion("region between", value1, value2, "region");
            return (Criteria) this;
        }

        public Criteria andRegionNotBetween(String value1, String value2) {
            addCriterion("region not between", value1, value2, "region");
            return (Criteria) this;
        }

        public Criteria andStyIsNull() {
            addCriterion("sty is null");
            return (Criteria) this;
        }

        public Criteria andStyIsNotNull() {
            addCriterion("sty is not null");
            return (Criteria) this;
        }

        public Criteria andStyEqualTo(String value) {
            addCriterion("sty =", value, "sty");
            return (Criteria) this;
        }

        public Criteria andStyNotEqualTo(String value) {
            addCriterion("sty <>", value, "sty");
            return (Criteria) this;
        }

        public Criteria andStyGreaterThan(String value) {
            addCriterion("sty >", value, "sty");
            return (Criteria) this;
        }

        public Criteria andStyGreaterThanOrEqualTo(String value) {
            addCriterion("sty >=", value, "sty");
            return (Criteria) this;
        }

        public Criteria andStyLessThan(String value) {
            addCriterion("sty <", value, "sty");
            return (Criteria) this;
        }

        public Criteria andStyLessThanOrEqualTo(String value) {
            addCriterion("sty <=", value, "sty");
            return (Criteria) this;
        }

        public Criteria andStyLike(String value) {
            addCriterion("sty like", value, "sty");
            return (Criteria) this;
        }

        public Criteria andStyNotLike(String value) {
            addCriterion("sty not like", value, "sty");
            return (Criteria) this;
        }

        public Criteria andStyIn(List<String> values) {
            addCriterion("sty in", values, "sty");
            return (Criteria) this;
        }

        public Criteria andStyNotIn(List<String> values) {
            addCriterion("sty not in", values, "sty");
            return (Criteria) this;
        }

        public Criteria andStyBetween(String value1, String value2) {
            addCriterion("sty between", value1, value2, "sty");
            return (Criteria) this;
        }

        public Criteria andStyNotBetween(String value1, String value2) {
            addCriterion("sty not between", value1, value2, "sty");
            return (Criteria) this;
        }

        public Criteria andAddressIsNull() {
            addCriterion("address is null");
            return (Criteria) this;
        }

        public Criteria andAddressIsNotNull() {
            addCriterion("address is not null");
            return (Criteria) this;
        }

        public Criteria andAddressEqualTo(String value) {
            addCriterion("address =", value, "address");
            return (Criteria) this;
        }

        public Criteria andAddressNotEqualTo(String value) {
            addCriterion("address <>", value, "address");
            return (Criteria) this;
        }

        public Criteria andAddressGreaterThan(String value) {
            addCriterion("address >", value, "address");
            return (Criteria) this;
        }

        public Criteria andAddressGreaterThanOrEqualTo(String value) {
            addCriterion("address >=", value, "address");
            return (Criteria) this;
        }

        public Criteria andAddressLessThan(String value) {
            addCriterion("address <", value, "address");
            return (Criteria) this;
        }

        public Criteria andAddressLessThanOrEqualTo(String value) {
            addCriterion("address <=", value, "address");
            return (Criteria) this;
        }

        public Criteria andAddressLike(String value) {
            addCriterion("address like", value, "address");
            return (Criteria) this;
        }

        public Criteria andAddressNotLike(String value) {
            addCriterion("address not like", value, "address");
            return (Criteria) this;
        }

        public Criteria andAddressIn(List<String> values) {
            addCriterion("address in", values, "address");
            return (Criteria) this;
        }

        public Criteria andAddressNotIn(List<String> values) {
            addCriterion("address not in", values, "address");
            return (Criteria) this;
        }

        public Criteria andAddressBetween(String value1, String value2) {
            addCriterion("address between", value1, value2, "address");
            return (Criteria) this;
        }

        public Criteria andAddressNotBetween(String value1, String value2) {
            addCriterion("address not between", value1, value2, "address");
            return (Criteria) this;
        }

        public Criteria andPhoneIsNull() {
            addCriterion("phone is null");
            return (Criteria) this;
        }

        public Criteria andPhoneIsNotNull() {
            addCriterion("phone is not null");
            return (Criteria) this;
        }

        public Criteria andPhoneEqualTo(String value) {
            addCriterion("phone =", value, "phone");
            return (Criteria) this;
        }

        public Criteria andPhoneNotEqualTo(String value) {
            addCriterion("phone <>", value, "phone");
            return (Criteria) this;
        }

        public Criteria andPhoneGreaterThan(String value) {
            addCriterion("phone >", value, "phone");
            return (Criteria) this;
        }

        public Criteria andPhoneGreaterThanOrEqualTo(String value) {
            addCriterion("phone >=", value, "phone");
            return (Criteria) this;
        }

        public Criteria andPhoneLessThan(String value) {
            addCriterion("phone <", value, "phone");
            return (Criteria) this;
        }

        public Criteria andPhoneLessThanOrEqualTo(String value) {
            addCriterion("phone <=", value, "phone");
            return (Criteria) this;
        }

        public Criteria andPhoneLike(String value) {
            addCriterion("phone like", value, "phone");
            return (Criteria) this;
        }

        public Criteria andPhoneNotLike(String value) {
            addCriterion("phone not like", value, "phone");
            return (Criteria) this;
        }

        public Criteria andPhoneIn(List<String> values) {
            addCriterion("phone in", values, "phone");
            return (Criteria) this;
        }

        public Criteria andPhoneNotIn(List<String> values) {
            addCriterion("phone not in", values, "phone");
            return (Criteria) this;
        }

        public Criteria andPhoneBetween(String value1, String value2) {
            addCriterion("phone between", value1, value2, "phone");
            return (Criteria) this;
        }

        public Criteria andPhoneNotBetween(String value1, String value2) {
            addCriterion("phone not between", value1, value2, "phone");
            return (Criteria) this;
        }

        public Criteria andSetMealNameIsNull() {
            addCriterion("set_meal_name is null");
            return (Criteria) this;
        }

        public Criteria andSetMealNameIsNotNull() {
            addCriterion("set_meal_name is not null");
            return (Criteria) this;
        }

        public Criteria andSetMealNameEqualTo(String value) {
            addCriterion("set_meal_name =", value, "setMealName");
            return (Criteria) this;
        }

        public Criteria andSetMealNameNotEqualTo(String value) {
            addCriterion("set_meal_name <>", value, "setMealName");
            return (Criteria) this;
        }

        public Criteria andSetMealNameGreaterThan(String value) {
            addCriterion("set_meal_name >", value, "setMealName");
            return (Criteria) this;
        }

        public Criteria andSetMealNameGreaterThanOrEqualTo(String value) {
            addCriterion("set_meal_name >=", value, "setMealName");
            return (Criteria) this;
        }

        public Criteria andSetMealNameLessThan(String value) {
            addCriterion("set_meal_name <", value, "setMealName");
            return (Criteria) this;
        }

        public Criteria andSetMealNameLessThanOrEqualTo(String value) {
            addCriterion("set_meal_name <=", value, "setMealName");
            return (Criteria) this;
        }

        public Criteria andSetMealNameLike(String value) {
            addCriterion("set_meal_name like", value, "setMealName");
            return (Criteria) this;
        }

        public Criteria andSetMealNameNotLike(String value) {
            addCriterion("set_meal_name not like", value, "setMealName");
            return (Criteria) this;
        }

        public Criteria andSetMealNameIn(List<String> values) {
            addCriterion("set_meal_name in", values, "setMealName");
            return (Criteria) this;
        }

        public Criteria andSetMealNameNotIn(List<String> values) {
            addCriterion("set_meal_name not in", values, "setMealName");
            return (Criteria) this;
        }

        public Criteria andSetMealNameBetween(String value1, String value2) {
            addCriterion("set_meal_name between", value1, value2, "setMealName");
            return (Criteria) this;
        }

        public Criteria andSetMealNameNotBetween(String value1, String value2) {
            addCriterion("set_meal_name not between", value1, value2, "setMealName");
            return (Criteria) this;
        }

        public Criteria andSetMealPriceIsNull() {
            addCriterion("set_meal_price is null");
            return (Criteria) this;
        }

        public Criteria andSetMealPriceIsNotNull() {
            addCriterion("set_meal_price is not null");
            return (Criteria) this;
        }

        public Criteria andSetMealPriceEqualTo(String value) {
            addCriterion("set_meal_price =", value, "setMealPrice");
            return (Criteria) this;
        }

        public Criteria andSetMealPriceNotEqualTo(String value) {
            addCriterion("set_meal_price <>", value, "setMealPrice");
            return (Criteria) this;
        }

        public Criteria andSetMealPriceGreaterThan(String value) {
            addCriterion("set_meal_price >", value, "setMealPrice");
            return (Criteria) this;
        }

        public Criteria andSetMealPriceGreaterThanOrEqualTo(String value) {
            addCriterion("set_meal_price >=", value, "setMealPrice");
            return (Criteria) this;
        }

        public Criteria andSetMealPriceLessThan(String value) {
            addCriterion("set_meal_price <", value, "setMealPrice");
            return (Criteria) this;
        }

        public Criteria andSetMealPriceLessThanOrEqualTo(String value) {
            addCriterion("set_meal_price <=", value, "setMealPrice");
            return (Criteria) this;
        }

        public Criteria andSetMealPriceLike(String value) {
            addCriterion("set_meal_price like", value, "setMealPrice");
            return (Criteria) this;
        }

        public Criteria andSetMealPriceNotLike(String value) {
            addCriterion("set_meal_price not like", value, "setMealPrice");
            return (Criteria) this;
        }

        public Criteria andSetMealPriceIn(List<String> values) {
            addCriterion("set_meal_price in", values, "setMealPrice");
            return (Criteria) this;
        }

        public Criteria andSetMealPriceNotIn(List<String> values) {
            addCriterion("set_meal_price not in", values, "setMealPrice");
            return (Criteria) this;
        }

        public Criteria andSetMealPriceBetween(String value1, String value2) {
            addCriterion("set_meal_price between", value1, value2, "setMealPrice");
            return (Criteria) this;
        }

        public Criteria andSetMealPriceNotBetween(String value1, String value2) {
            addCriterion("set_meal_price not between", value1, value2, "setMealPrice");
            return (Criteria) this;
        }

        public Criteria andHotelDetailsIsNull() {
            addCriterion("hotel_details is null");
            return (Criteria) this;
        }

        public Criteria andHotelDetailsIsNotNull() {
            addCriterion("hotel_details is not null");
            return (Criteria) this;
        }

        public Criteria andHotelDetailsEqualTo(String value) {
            addCriterion("hotel_details =", value, "hotelDetails");
            return (Criteria) this;
        }

        public Criteria andHotelDetailsNotEqualTo(String value) {
            addCriterion("hotel_details <>", value, "hotelDetails");
            return (Criteria) this;
        }

        public Criteria andHotelDetailsGreaterThan(String value) {
            addCriterion("hotel_details >", value, "hotelDetails");
            return (Criteria) this;
        }

        public Criteria andHotelDetailsGreaterThanOrEqualTo(String value) {
            addCriterion("hotel_details >=", value, "hotelDetails");
            return (Criteria) this;
        }

        public Criteria andHotelDetailsLessThan(String value) {
            addCriterion("hotel_details <", value, "hotelDetails");
            return (Criteria) this;
        }

        public Criteria andHotelDetailsLessThanOrEqualTo(String value) {
            addCriterion("hotel_details <=", value, "hotelDetails");
            return (Criteria) this;
        }

        public Criteria andHotelDetailsLike(String value) {
            addCriterion("hotel_details like", value, "hotelDetails");
            return (Criteria) this;
        }

        public Criteria andHotelDetailsNotLike(String value) {
            addCriterion("hotel_details not like", value, "hotelDetails");
            return (Criteria) this;
        }

        public Criteria andHotelDetailsIn(List<String> values) {
            addCriterion("hotel_details in", values, "hotelDetails");
            return (Criteria) this;
        }

        public Criteria andHotelDetailsNotIn(List<String> values) {
            addCriterion("hotel_details not in", values, "hotelDetails");
            return (Criteria) this;
        }

        public Criteria andHotelDetailsBetween(String value1, String value2) {
            addCriterion("hotel_details between", value1, value2, "hotelDetails");
            return (Criteria) this;
        }

        public Criteria andHotelDetailsNotBetween(String value1, String value2) {
            addCriterion("hotel_details not between", value1, value2, "hotelDetails");
            return (Criteria) this;
        }

        public Criteria andMenuDetailsIsNull() {
            addCriterion("menu_details is null");
            return (Criteria) this;
        }

        public Criteria andMenuDetailsIsNotNull() {
            addCriterion("menu_details is not null");
            return (Criteria) this;
        }

        public Criteria andMenuDetailsEqualTo(String value) {
            addCriterion("menu_details =", value, "menuDetails");
            return (Criteria) this;
        }

        public Criteria andMenuDetailsNotEqualTo(String value) {
            addCriterion("menu_details <>", value, "menuDetails");
            return (Criteria) this;
        }

        public Criteria andMenuDetailsGreaterThan(String value) {
            addCriterion("menu_details >", value, "menuDetails");
            return (Criteria) this;
        }

        public Criteria andMenuDetailsGreaterThanOrEqualTo(String value) {
            addCriterion("menu_details >=", value, "menuDetails");
            return (Criteria) this;
        }

        public Criteria andMenuDetailsLessThan(String value) {
            addCriterion("menu_details <", value, "menuDetails");
            return (Criteria) this;
        }

        public Criteria andMenuDetailsLessThanOrEqualTo(String value) {
            addCriterion("menu_details <=", value, "menuDetails");
            return (Criteria) this;
        }

        public Criteria andMenuDetailsLike(String value) {
            addCriterion("menu_details like", value, "menuDetails");
            return (Criteria) this;
        }

        public Criteria andMenuDetailsNotLike(String value) {
            addCriterion("menu_details not like", value, "menuDetails");
            return (Criteria) this;
        }

        public Criteria andMenuDetailsIn(List<String> values) {
            addCriterion("menu_details in", values, "menuDetails");
            return (Criteria) this;
        }

        public Criteria andMenuDetailsNotIn(List<String> values) {
            addCriterion("menu_details not in", values, "menuDetails");
            return (Criteria) this;
        }

        public Criteria andMenuDetailsBetween(String value1, String value2) {
            addCriterion("menu_details between", value1, value2, "menuDetails");
            return (Criteria) this;
        }

        public Criteria andMenuDetailsNotBetween(String value1, String value2) {
            addCriterion("menu_details not between", value1, value2, "menuDetails");
            return (Criteria) this;
        }

        public Criteria andP1IsNull() {
            addCriterion("p1 is null");
            return (Criteria) this;
        }

        public Criteria andP1IsNotNull() {
            addCriterion("p1 is not null");
            return (Criteria) this;
        }

        public Criteria andP1EqualTo(String value) {
            addCriterion("p1 =", value, "p1");
            return (Criteria) this;
        }

        public Criteria andP1NotEqualTo(String value) {
            addCriterion("p1 <>", value, "p1");
            return (Criteria) this;
        }

        public Criteria andP1GreaterThan(String value) {
            addCriterion("p1 >", value, "p1");
            return (Criteria) this;
        }

        public Criteria andP1GreaterThanOrEqualTo(String value) {
            addCriterion("p1 >=", value, "p1");
            return (Criteria) this;
        }

        public Criteria andP1LessThan(String value) {
            addCriterion("p1 <", value, "p1");
            return (Criteria) this;
        }

        public Criteria andP1LessThanOrEqualTo(String value) {
            addCriterion("p1 <=", value, "p1");
            return (Criteria) this;
        }

        public Criteria andP1Like(String value) {
            addCriterion("p1 like", value, "p1");
            return (Criteria) this;
        }

        public Criteria andP1NotLike(String value) {
            addCriterion("p1 not like", value, "p1");
            return (Criteria) this;
        }

        public Criteria andP1In(List<String> values) {
            addCriterion("p1 in", values, "p1");
            return (Criteria) this;
        }

        public Criteria andP1NotIn(List<String> values) {
            addCriterion("p1 not in", values, "p1");
            return (Criteria) this;
        }

        public Criteria andP1Between(String value1, String value2) {
            addCriterion("p1 between", value1, value2, "p1");
            return (Criteria) this;
        }

        public Criteria andP1NotBetween(String value1, String value2) {
            addCriterion("p1 not between", value1, value2, "p1");
            return (Criteria) this;
        }

        public Criteria andP2IsNull() {
            addCriterion("p2 is null");
            return (Criteria) this;
        }

        public Criteria andP2IsNotNull() {
            addCriterion("p2 is not null");
            return (Criteria) this;
        }

        public Criteria andP2EqualTo(String value) {
            addCriterion("p2 =", value, "p2");
            return (Criteria) this;
        }

        public Criteria andP2NotEqualTo(String value) {
            addCriterion("p2 <>", value, "p2");
            return (Criteria) this;
        }

        public Criteria andP2GreaterThan(String value) {
            addCriterion("p2 >", value, "p2");
            return (Criteria) this;
        }

        public Criteria andP2GreaterThanOrEqualTo(String value) {
            addCriterion("p2 >=", value, "p2");
            return (Criteria) this;
        }

        public Criteria andP2LessThan(String value) {
            addCriterion("p2 <", value, "p2");
            return (Criteria) this;
        }

        public Criteria andP2LessThanOrEqualTo(String value) {
            addCriterion("p2 <=", value, "p2");
            return (Criteria) this;
        }

        public Criteria andP2Like(String value) {
            addCriterion("p2 like", value, "p2");
            return (Criteria) this;
        }

        public Criteria andP2NotLike(String value) {
            addCriterion("p2 not like", value, "p2");
            return (Criteria) this;
        }

        public Criteria andP2In(List<String> values) {
            addCriterion("p2 in", values, "p2");
            return (Criteria) this;
        }

        public Criteria andP2NotIn(List<String> values) {
            addCriterion("p2 not in", values, "p2");
            return (Criteria) this;
        }

        public Criteria andP2Between(String value1, String value2) {
            addCriterion("p2 between", value1, value2, "p2");
            return (Criteria) this;
        }

        public Criteria andP2NotBetween(String value1, String value2) {
            addCriterion("p2 not between", value1, value2, "p2");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}